<template>
  <div class="iconWrap">
    <div :class="(Index == 1 || Index == 2)?'imgWrap greenImgWrap':'imgWrap'">{{value}}</div>
    <img src="@/assets/images/icon_left.png" alt="">
    <div class="textWrap">{{label}}</div>
  </div>
</template>

<script>

export default {
  props: {
    value: Number,
    label: String,
    Index: Number
  },
  data() {
    return {
    }
  },
}
</script>

<style lang="scss" scoped>
  .iconWrap{
    display: flex;
    flex-direction: row;
    align-items: center;
    .imgWrap{
      width: 95px;
      height: 94px;
      background-image: url('@/assets/images/icon_numberblue.png'); // icon_numbergreen.png
      background-repeat: no-repeat;
      background-size: 100% ;
      background-position: center center ;
      line-height: 94px;
      font-size: 28px;
      color: #fff;
      text-align: center;
      // object-fit: contain;
    }
    .greenImgWrap{
      background-image: url('@/assets/images/icon_numbergreen.png'); // icon_numbergreen.png

    }
    img{
      width: 43px;
      object-fit: contain;
      margin-left: 2px;
    }
    .textWrap{
      font-weight: 400;
      font-size: 14px;
      color: #7FF0FB;
      margin-left: 5px;
    }
  }
</style>